from apps.common.base.views import *
from apps.pay.order.serializers import *
from apps.pay.order.dao import OrderDao
from apps.pay.order.filters import OrderFilter
from apps.pay.order.sceneHandle import setPayMoney

def getOrders(self):
    _list = OrderDao().findAll().select_related('user', 'rider', 'activity', 'shop')
    return _list

class BaseOrderViewSet(BaseViewSet):
    serializer_class = OrderModelSerializer
    filter_class = OrderFilter
    DAO_CLASS = OrderDao